package top.xzxsrq.fileviewutils;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import top.xzxsrq.utils.PathUtils;

import java.io.File;

@SpringBootApplication
@EnableScheduling
//@ComponentScan("top.xzxsrq.plugin")
public class FileViewUtilsApplication {
    public static final String projectDir = PathUtils.getCanonicalPath(new File(""));

    public static void main(String[] args) {
        // 关闭fastjson 出现漏洞的问题
//        ParserConfig.getGlobalInstance().setSafeMode(true);
        System.out.println("projectDir = " + projectDir);
        SpringApplication.run(FileViewUtilsApplication.class, args);
    }

}
